package com.new_wear.project.system.video.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.new_wear.framework.aspectj.lang.annotation.Excel;
import com.new_wear.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 系统 - 视频对象 cst_video
 * 
 * @author new_wear
 * @date 2019-12-30
 */
public class CstVideo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 文件原名称 */
    @Excel(name = "文件原名称")
    private String title;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String address;

    /** 加入时间 */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Integer areaId;

    /** 是否已注入CDN 0未1已 */
    @Excel(name = "是否已注入CDN 0未1已")
    private Long status;

    /** 文件格式 */
    @Excel(name = "文件格式")
    private String extension;

    /** 审核  0未1已 */
    @Excel(name = "审核  0未1已")
    private Long checked;

    /** 上传者ID */
    @Excel(name = "上传者ID")
    private Integer adminId;

    /** 点播源ID */
    @Excel(name = "点播源ID")
    private Integer thirdId;

    /** 第三方源 */
    @Excel(name = "第三方源")
    private String thirdSource;

    /** 时长， */
    @Excel(name = "时长，")
    private Integer duration;

    /** 视频封面 */
    @Excel(name = "视频封面")
    private String videoImg;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setAreaId(Integer areaId) 
    {
        this.areaId = areaId;
    }

    public Integer getAreaId() 
    {
        return areaId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setExtension(String extension) 
    {
        this.extension = extension;
    }

    public String getExtension() 
    {
        return extension;
    }
    public void setChecked(Long checked) 
    {
        this.checked = checked;
    }

    public Long getChecked() 
    {
        return checked;
    }
    public void setAdminId(Integer adminId) 
    {
        this.adminId = adminId;
    }

    public Integer getAdminId() 
    {
        return adminId;
    }
    public void setThirdId(Integer thirdId) 
    {
        this.thirdId = thirdId;
    }

    public Integer getThirdId() 
    {
        return thirdId;
    }
    public void setThirdSource(String thirdSource) 
    {
        this.thirdSource = thirdSource;
    }

    public String getThirdSource() 
    {
        return thirdSource;
    }
    public void setDuration(Integer duration) 
    {
        this.duration = duration;
    }

    public Integer getDuration() 
    {
        return duration;
    }
    public void setVideoImg(String videoImg) 
    {
        this.videoImg = videoImg;
    }

    public String getVideoImg() 
    {
        return videoImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("address", getAddress())
            .append("addtime", getAddtime())
            .append("areaId", getAreaId())
            .append("status", getStatus())
            .append("extension", getExtension())
            .append("checked", getChecked())
            .append("adminId", getAdminId())
            .append("thirdId", getThirdId())
            .append("thirdSource", getThirdSource())
            .append("duration", getDuration())
            .append("videoImg", getVideoImg())
            .toString();
    }
}
